import Vue from 'vue'
import App from './App'
import MpvueRouterPatch from 'mpvue-router-patch'
import UserApi from '@/api/userApi'
import api from '@/api/api'
import Utils from '@/utils/index'
import createStore from '@/pages/subPage/liveVideoArea/nim/redux/createStore.js'
import reducer from '@/pages/subPage/liveVideoArea/nim/store/reducer.js'
import nim from '@/utils/nim'
import storage from '@/utils/storage'
import storeVuex from './store/index'
import * as types from './store/types'
Vue.prototype.$types = types
Vue.prototype.$store = storeVuex
Vue.prototype.$api = UserApi
Vue.prototype.$utils = Utils
Vue.prototype.$nim = nim
Vue.prototype.$storage = storage
Vue.prototype.$linkUrl = api.linkUrl
Vue.prototype.$imgUrl = 'https://ks3-cn-beijing.ksyun.com/wxapp/wdrm/image/patient/'
Vue.config.productionTip = false
// Vue.config._mpTrace = true
App.mpType = 'app'
Vue.use(MpvueRouterPatch)

const app = new Vue(App)
const store = createStore(reducer) // redux store
// const Verify = require('../static/verify_mpsdk/main')
var Verify = require('../static/verify_mpsdk/main')
Verify.init()
app.$mount()
// import nim from './utils/nim'
nim.init()//网易云信初始化
